package com.smart.enums;

public enum BatchSendEcpUserEnum {

    SYSTEM_BATCH_SEND(2,"系统批量派发");


    private int code;
    private String name;
    BatchSendEcpUserEnum(int code, String name){
        this.code = code;
        this.name = name;
    }

    public static String getName(int code){
        for (BatchSendEcpUserEnum obj : BatchSendEcpUserEnum.values()) {
            if(obj.getCode() == code){
                return obj.getName();
            }
        }
        return "";
    }

    public String getName() {
        return name;
    }

    public int getCode() {
        return code;
    }
}
